package io.aircraft.modules.job.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.aircraft.common.service.impl.CrudServiceImpl;
import io.aircraft.common.utils.ConvertUtils;
import io.aircraft.modules.job.dao.VwPostWcsDao;
import io.aircraft.modules.job.dto.VwPostWcsDTO;
import io.aircraft.modules.job.entity.VwPostWcsEntity;
import io.aircraft.modules.job.service.VwPostWcsService;
import org.springframework.stereotype.Service;

import java.util.Map;
@Service
public class VwPostWcsServiceImpl extends CrudServiceImpl<VwPostWcsDao, VwPostWcsEntity, VwPostWcsDTO> implements VwPostWcsService {
    @Override
    public QueryWrapper<VwPostWcsEntity> getWrapper(Map<String, Object> params) {
        return null;
    }

    @Override
    public VwPostWcsDTO getOne() {
        VwPostWcsEntity entity = baseDao.selectOne(null);
        return ConvertUtils.sourceToTarget(entity, VwPostWcsDTO.class);
    }
}
